package com.sky.service.common;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.pojo.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DishService {
    Result<PageResult> page(DishPageQueryDTO dishPageQueryDTO);

    boolean add(DishDTO dishDTO);

    Result<DishVO> findById(Long id);

    boolean deleteByIds(List<Long> ids);

    boolean update(DishDTO dishDTO);

    boolean startOrStop(Integer status, Long id);

    List<Dish> list(Integer categoryId);
}
